package websphinx;

import java.util.HashMap;
import java.util.Map;
import java.util.Vector;


/**
 * singlten class that stores the matched results
 * 
 * @author Administrator
 * 
 */
public class MatchResult {

	private static MatchResult obj = null;
	
	private Map<String, Vector> data = new HashMap<String, Vector>();
	
	
	public Map<String, Vector> getData() {
		return data;
	}

	public Vector getData(String name) {
		return data.get(name);
	}

	public int getCount() {
		return data.size();
	}

	/**
	 * makes the constructor private to be a singlten class
	 */
	private MatchResult() {
	}

	public static MatchResult getInstance() {
		if (obj == null) {
			obj = new MatchResult();
		}
		return obj;
	}

}
